/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.Abstracts;

import br.com.model.Token;

/**
 *
 * @author Bush
 */
public abstract class AbstractTratadorLexicoToken{     
    protected AbstractTratadorLexicoToken sucessor;
    
    
    public void tratador(Token token) {
        isValido(token);
    }
    
    public void setProximoConjunto(AbstractTratadorLexicoToken conjunto){
        if(this.sucessor == null)
            this.sucessor = conjunto;
        else
            this.sucessor.setProximoConjunto(conjunto);
    }  
    public abstract void isValido(Token token);  
}
